package net.wofly.sale.stock.domain;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 库存预警
 * <ol>
 * <li>匹配当前用户仓库下的当前商品的渠道ID的预警值 </li>
 * <li>匹配当前用户仓库下当前商品类型ID的预警值 </li>
 * <li>匹配通用仓库下当前商品的渠道ID的预警值 </li>
 * <li>匹配通用仓库下当前商品类型ID下的预警值 </li>
 * <li>匹配通用仓库下不指定商品类型不指定商品的预警值 </li>
 * </ol>
 *
 * @author lign
 * @version 1.0
 * @created 11-10月-2017 21:17:46
 */
@Data
@Entity
@Table(name = "sale_stock_stockwarning")
@ApiModel(description = "库存预警")
public class StockWarning {
    
    @Id
    private String stockWarningID;
    /**
     * 终端商品ID
     * <ul>
     * <li>-1表示所有商品</li>
     * </ul>
     */
    private String commodityTerminalID = "-1";
    /**
     * 商品类型
     * <ul>
     * <li>-1表示所有类型商品</li>
     * </ul>
     */
    private String commodityTypeID = "-1";
    
    private Long modifyDate;
    /**
     * 仓库ID
     * <ul>
     * <li>-1表示不分仓库，任何仓库都适用</li>
     * <li></li>
     * </ul>
     */
    private String warehouseID = "-1";
    /**
     * 预警值
     */
    private Integer warningNum;
    
    public StockWarning() {
        
    }
    @Override
    public void finalize() throws Throwable {
        
    }
}